package roger;

public class Moto extends Reparation {

	private boolean sd;

	public Moto(String date, String motif, boolean sd) {
		super(date, motif);
		this.sd = sd;
	}

	public Moto() {
		super();
		this.sd = Util.lireOuiNon("Side car ? [o/n]       : ", "R�pondez \'o\' ou \'n\'");
	}

	public String toString() {
		return super.toString() + " ; moto " + (sd ? "avec" : "sans")
				+ " side-car";
	}

	public boolean isSd() {
		return sd;
	}

	public void setSd(boolean sd) {
		this.sd = sd;
	}

}
